<%= javascript_include_tag 'jquery.tools.min' %>
<%= javascript_include_tag 'overlay' %>

<div id="content_container" class="product_container">
  <ul class="hot_list" id="product_list">
    <% for product in @user.favors %>
      <li>
        <%= render :partial =>'/products/product_flash',:object=>product,
          :locals=>{:flash_params=>"product_id=#{product.id}"}%>
    <div class="rank_button_container">
        <div class="detail_toolbar">
          <span><a href="/products/<%=product.id%>" rel="#overlay" style="text-decoration:none" class="action_view" title="点击查看详细内容">查看大图</a></span><br />
          <span>人气: XXX </span>
          <span class="yen"><%=product.price%></span>
        </div>
        <div class="detail_toolbar">
          <a href="/products/confirm/<%=product.id%>" >
            <img src="/images/minibuy.gif" alt="购买" />
          </a>
          <%=link_to('<img src="/images/miniremovefavo.gif" alt="移除" />',{:controller => "products",
              :action => "remove_favorite",
              :id => product.id},
            {:method =>:post}) %>
        </div>
     </div>
      </li>
    <%  end %>
  </ul>
</div>